/** 
 * @author (Gruppe G) 
 * @version (04/17/2012)
 */

package ModelLayer;
import java.util.ArrayList;

public class DVD
{
    private String title;
    private String director;
    private String releaseDate;
    
    private static DVD instance;
    private ArrayList<Copy> CopyList;

    /**
     * Constructor for objects of class DVD
     */
    public DVD(String newTitle, String newDirector, String newReleaseDate)
    {
        title = newTitle;
        director = newDirector;
        releaseDate = newReleaseDate;
        
        CopyList = new ArrayList<Copy>();
    }
    
    /**
     * CopyList (ArrayList) specific methods
     */    
    public void addCopy(long serialNo, String acquisitionDate, double acquisitionPrice)
    {
        Copy copy = new Copy(serialNo, acquisitionDate, acquisitionPrice);
        CopyList.add(copy);
    }
    
    /**
     * Get/Set methods for class attributes
     */
    public String getTitle()
    { return title; }
    
    public String getDirector()
    { return director; }
    
    public ArrayList<Copy> getCopyList()
    { return CopyList; }
    
    public String getReleaseDate()
    { return releaseDate; }
    
    public void setTitle(String data)
    { title = data; }
    
    public void setDirector(String data)
    { director = data; }
    
    public void setReleaseDate(String data)
    { releaseDate = data; }
}